package com.pkx.cloud.fse7.expand.group.service;

import com.pkx.cloud.fse7.expand.group.entity.DoorGroup;
import com.pkx.cloud.mybatis.comn.BaseSev;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 服务类
 *
 * @author chenwg
 * @since 2021-04-09
 */
public interface DoorGroupService extends BaseSev<DoorGroup> {

    /**
     * 分页列表
     *
     * @param doorGroup
     * @return
     */
    Page<DoorGroup> pageList(Page page, DoorGroup doorGroup);

    /**
     * 列表查询
     *
     * @param doorGroup
     * @return
     */
    List<DoorGroup> listByEntity(DoorGroup doorGroup);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    DoorGroup selectById(String id);

    /**
     * 保存
     *
     * @param doorGroup
     * @return
     */
    Boolean saveDoorGroup(DoorGroup doorGroup);

    /**
     * 修改
     *
     * @param doorGroup
     * @return
     */
    Boolean modify(DoorGroup doorGroup);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    Boolean deleteById(String id);

    /**
     * 场地+设备树
     *
     * @return
     */
    List getYardList();

    List getDeviceTree();

    List getGroupByPath(String path);

    /**
     * 执行预案
     *
     * @param triggerId
     * @param list
     * @return
     */
    Boolean execute(String triggerId, List<String> list);
}
